import { get, post } from '@/utils/request'
const BASE_URL = window.baseUrl.dispose

/** 分页查询 */
export function tableList(query) {
  return post(BASE_URL + '/emergencyPlan/list', query)
}
/** 新增 */
export function emergencyPlanAdd(query) {
  return post(BASE_URL + '/emergencyPlan/add', query)
}
/** 编辑 */
export function emergencyPlanEdit(query) {
  return post(BASE_URL + '/emergencyPlan/edit', query)
}
/** 修改状态 */
export function editState(query) {
  return post(BASE_URL + '/emergencyPlan/editState', query)
}
/** 删除 */
export function emergencyPlanDelete(query) {
  return get(BASE_URL + '/emergencyPlan/delete', query)
}
/** 批量删除 */
export function deleteBatch(query) {
  return get(BASE_URL + '/emergencyPlan/deleteBatch', query)
}
/** 根据Id查询*/
export function queryById(query) {
  return get(BASE_URL + '/emergencyPlan/queryById', query)
}
/** 根据id查询应急响应内容*/
export function queryContentByMainId(query) {
  return get(BASE_URL + '/emergencyPlan/queryContentByMainId', query)
}

/** 监测指标-不分页列表 */
export function getMetricsLists(query) {
  return get(BASE_URL + '/emergencyPlan/getMetricsLists', query)
}
